package com.lg.algorithm.common;

import java.util.Arrays;
import java.util.Random;

public class ArrayProducer {

    public static final Random random = new Random();

    public  static int [] produce(int length,int minNum,int maxNum){
        int[] res = new int[length];
        for (int i = 0; i < length; i++) {
            res[i] = random.nextInt(maxNum) + minNum;
        }
        System.out.println("生成数字："+ Arrays.toString(res));
        return res;
    }
}
